package com.druid.common.mapstruct;


import com.druid.entity.CeUser;
import com.druid.response.AdminUserVm;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import java.util.List;

@Mapper(componentModel = "spring")
public interface AdminUserMapstruct {
    @Mappings({
            @Mapping(source = "enAdminUser.id", target = "id")
    })
    AdminUserVm AdminUserTransform(CeUser enAdminUser);

    List<AdminUserVm> AdminUserTransformLList(List<CeUser> enAdminUserList);
}